/**
 * 该文件定义静态路由数组
 */
export default [
    {
        //一级路由
        path: "/login",
        name: "login",
        component: () => import("../views/login/index.vue")
    },
    {
        // vueRouter@4之前，写*
        path: '/:pathMatch(.*)*',
        name: 'not-found',
        component: () => import("@/views/error/404.vue"),
    },
    {
        //一级路由
        path: "/",
        name: "index",
        component: () => import("../layout/index.vue"),
        children: [
            {
                path: "403",
                name: "403",
                component: () => import("@/views/error/403.vue")
            },
            {
                path: "404",
                name: "404",
                component: () => import("@/views/error/404.vue")
            },
        ]
    },
]